* {
  @include scrollBarStyle;

  &,
  &::before,
  &::after {
    box-sizing: border-box;
    margin: 0;
    letter-spacing: 1px;
  }
}
html,
body,
#__nuxt,
#__layout {
  height: 100%;
}

html {
  @include fontFamily;
  @include fontStyle($color: $-v-color-text-primary, $size: $-v-font-size-base);

  word-spacing: 1px;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

ul,
li {
  list-style: none;
  padding: 0;
}

.page-title {
  font-size: $-v-font-size-medium;
  line-height: $-v-font-line-height-primary;
  font-weight: $-v-font-weight-primary;
  color: $-v-color-text-primary;

  @include ellipsis;
}

.block {
  padding: $block-padding;
  border-radius: $-v-radius-base;
  background-color: $-v-color-white;

  &.no-radius {
    border-radius: 0;
  }

  &-title {
    line-height: $-v-font-line-height-primary;

    .bar {
      width: 14px;
      vertical-align: middle;
      margin-right: $-v-spacing-vertical-icon;
    }
  }

  & + .block {
    margin-top: $-v-spacing-horizontal-base;
  }
}

.side {
  height: 100%;
  overflow: auto;
  padding: $side-block-padding;
}

.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-right: $-v-spacing-vertical-icon;
  background-color: $-v-color-primary;
  vertical-align: middle;
}

.no-bg {
  background: transparent !important;

  &:hover,
  &:focus,
  &:active {
    background: transparent !important;
  }
}

.no-border {
  border: none !important;
  &:hover,
  &:focus,
  &:active {
    border: none !important;
  }
}

@each $class, $color in $colors {
  .#{$class} {
    color: $color;
  }
}

.hljs {
  background-color: $-v-color-background-base !important;
}

$primary-gradient-colors: (
  0: $-v-color-primary,
  1: $-v-color-primary-dark-1,
  2: $-v-color-primary-dark-2,
  3: $-v-color-primary-dark-3,
  4: $-v-color-primary-dark-4,
  5: $-v-color-primary-dark-5,
  6: $-v-color-primary-dark-6,
  7: $-v-color-primary-dark-7,
  8: $-v-color-primary-dark-8,
  9: $-v-color-primary-dark-9,
);

@each $key, $color in $primary-gradient-colors {
  .primary-dark-bg-#{$key} {
    background-color: $color;
  }
}

/* element reset
-------------------------- */
.el-tree {
  background-color: transparent;
  &-node {
    &__content .is-indeterminate + .el-tree-node__label {
      color: $-v-color-primary;
    }

    &.is-checked {
      .el-tree-node__label {
        color: $-v-color-primary;
      }
    }
  }
}

.el-button.is-icon i {
  font-size: 16px;
}

// 临时使用
.el-button--primary,
.el-button--primary:active,
.el-button--primary:focus,
.el-button--primary:hover,
.el-button--info,
.el-button--info:active,
.el-button--info:focus,
.el-button--info:hover {
  color: $-white;
}

.vul-tabs-one-large .el-tabs__header {
  background-color: $-white;


  .el-tabs__active-bar {
    display: none;
  }

  .el-tabs__item {
    padding: 0 24px !important;
    height: 56px;

    &.is-active {
      border-bottom: 2px solid #0289f7;
    }
  }
}
